auto merge of #401 : alexcrichton/cargo/issue-348, r=wycats
authorbors <bors@rust-lang.org>
Tue, 19 Aug 2014 06:32:54 +0000 (06:32 +0000)
committerbors <bors@rust-lang.org>
Tue, 19 Aug 2014 06:32:54 +0000 (06:32 +0000)
commit35c1975e8b7a7a18898ddde2f11380e8a3a435de
tree6dee8aceb0191746d697c51d96ae48846db9475d
parent6a55dc850b46982b939f4882b6311b6a19fe6aad
parent37538a13acfc010a38f0ab7ea745f858bbd7e179
auto merge of #401 : alexcrichton/cargo/issue-348, r=wycats

This commit changes the hash of Profile to only take into account
flags/variables that affect the actual output file itself (as opposed to its
location), and then changes cargo {test, build, doc} to all use the same
directory of output (in order to share deps).

This will cause a `cargo build` to remove all of the tests generated by `cargo
test`, but it speeds up the cycle of `cargo test` followed by a `cargo build` by
not needing to rebuild all dependencies.

Additionally, `cargo bench` now shares the same directory as
`cargo build --release` for the same reasons as above.

Closes #348